<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Cors</title>
</head>
<body>
  <h1>Cors demo</h1>
  <script src="./ajax.js"></script>
  <script>
    ajax('GET', 'http://localhost:4000/getData');
    // ajax('PUT', 'http://localhost:4000/getData');
    // ajax('POST', 'http://localhost:4000/getData');
  </script>
</body>
</html>